/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package escom.ipn.modelo.facade;

import com.mysql.jdbc.Connection;
import escom.ipn.modelo.dao.adminRadioDAO;
import escom.ipn.modelo.dto.RadioClass;
import java.sql.SQLException;
import java.util.List;
/**
 *
 * @author db2admin
 */
public class adminRadioFacade {
    
    private Connection cnn;
    private adminRadioDAO dao;

    public adminRadioFacade(Connection cnn) {
        this.cnn=cnn;
        dao= new adminRadioDAO();
    }  
    
    public List getRadios() throws SQLException{
        return dao.getRadios(cnn);
    }
    
    public List getRadioNOMBRE(RadioClass a) throws SQLException{
        return dao.getRadioNOMBRE(a,cnn);
    }
    
    public List getRadioID(RadioClass a) throws SQLException{
        return dao.getRadioID(a,cnn);
    }

    public void asignacion(RadioClass a) throws SQLException {
        dao.asignacion(a,cnn);
    }
    
}
